package com.ckx.service.impl;

import com.ckx.dao.TbConfigDOMapper;
import com.ckx.dao.entity.TbConfigDO;
import com.ckx.service.IConfigService;
import jakarta.annotation.PreDestroy;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class ConfigServiceImpl implements IConfigService {

    @PreDestroy
    public void des() {
        log.info("PreDestroy");
    }

    @Resource
    private TbConfigDOMapper configDOMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return configDOMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TbConfigDO record) {
        return configDOMapper.insert(record);
    }

    @Override
    public int insertSelective(TbConfigDO record) {
        return 0;
    }

    @Override
    public TbConfigDO selectByPrimaryKey(Long id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(TbConfigDO record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(TbConfigDO record) {
        return 0;
    }

    @Override
    public List<TbConfigDO> selectList(TbConfigDO record) {
        return this.configDOMapper.selectList(record);
    }

}
